Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Analytics Controller) Issues in sending csv email and adding proper error codes and swagger improvements #1735

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

ppratikcr7
Copy link
Collaborator

@ppratikcr7 ppratikcr7 commented Jul 5, 2024

Sending proper error codes in api response (500 instead of 400) for sending email and error code coverage in analytics controller swagger doc.
There was an error of "Missing final '@ domain'" due to a comma after the email id in env file. This PR resolves #1733
Screenshot 2024-07-05 at 6 52 17 PM

@ppratikcr7 ppratikcr7 self-assigned this Jul 5, 2024
@ppratikcr7 ppratikcr7 requested review from bcb37 and removed request for danoswaltCL July 5, 2024 13:59
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

400 and 500 should be listed for all the requests.

user
);
logger.info({ message: `Exported Data emailed successfully to ${email}` });
try {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try catch should only wrap sendEmail function

@ppratikcr7 ppratikcr7 changed the title Issues in sending csv email and adding proper error codes and swagger improvements Issues in sending csv email and adding proper error codes and swagger improvements (Analytics Controller) Jul 9, 2024
@ppratikcr7 ppratikcr7 changed the title Issues in sending csv email and adding proper error codes and swagger improvements (Analytics Controller) (Analytics Controller) Issues in sending csv email and adding proper error codes and swagger improvements Jul 9, 2024
@danoswaltCL
Copy link
Collaborator

@VivekFitkariwala can we get an updated review on this so we can move towards resolving some of our older PRs?

@danoswaltCL danoswaltCL merged commit 285701f into dev Jul 22, 2024
8 checks passed
@danoswaltCL danoswaltCL deleted the analytics-email-csv-improvement-issue-1733 branch July 22, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Analytics Controller Swagger and Email send bugs and improvements
3 participants